<div class="row comment-item grid">
    <#if comment.hasParentComment() == true>
        <@commentParent comment=comment.parentComment />
    </#if>
    <div class="user col-lg-3">
        <div><a href="/space/${comment.author.id}"><img class="avatar" src="${comment.author.avatar}"></a></div>
        <span data-type="username" data-id="${comment.author.id}">${comment.author.nickname}</span>
    </div>
    <div class="content col-lg-9 table-bordered">
        <p class="info-bar">${comment.getTimestamp("datetime")}</p>
        <p>${comment.getStr("content")}</p>
        <div class="text-right action-bar"><span class="btn btn-default reply" onclick="Pinion.replyToComment('${comment.class.name}', ${comment.id}, this)">回复</span></div>
    </div>
</div>



<#macro commentParent comment>
    <#include "/book/comment_item.ftl">
</#macro>


